{if $errors}
<div id="errors">
{foreach item=error from=$errors}
<span class="error">{$error}</span><br>
{/foreach}
</div>
{/if}

  {if $sites}
<div class="yui-gf"> 
<div class="yui-u first"> 
<h4>Find Me Online Here:</h4>
<table width="100%" cellspacing="0">
{foreach item=item from=$sites}
<tr class="siteRow">
<td><b><a href="{$item.URL}">{$item.siteName}</a></b></td>
</tr>
{if $item.rssURL}
<tr class="linkRow">
<td valign="top" align="right"><a href="{$uriPath}/{$request->ownerName}/Sites/view/{$item.idSite}">View Feed >></a></td>
</tr>
{/if}
{/foreach}
</table>
</div>
{/if} 


<div class="yui-u"> 
{if $rss}
<h2>{$rss->channel.title}</h2>
<table width="100%">
{foreach item=item from=$rss->items}
<tr>
<td><h5><a href="{$item.link|strip_tags}">{$item.title|strip_tags}</a></h5></td>
</tr>
{/foreach}
</table>

{elseif $mashup}
<h2>Activity (Last 5 days)</h2> 
<br />
<table width="100%">
{foreach key=timeStamp item=item from=$mashup}
<tr>
<td><h2>{$timeStamp|date_format:"%A, %B %e"}</h2></td>
</tr>
{foreach key=site item=entries from=$item}
<tr>
<td><h3>{$site}</h3></td>
</tr>
{foreach item=entry from=$entries}
<tr>
<td><a href="{$entry.link|strip_tags}">{$entry.title|strip_tags}</a></td>
</tr>
{/foreach}
{/foreach}
{/foreach} 
</table>
<br />

{else}
<p class="block">No site to list!</p>
{/if} 
</div>
</div>
